package com.taijihuabao.modules.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 考勤管理
 *
 * @author changhui.tu
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("考勤打卡")
public class CheckInEntity {

    /**
     * 考勤主键
     */
    @ApiModelProperty(value = "考勤主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 考勤日期
     */
    @ApiModelProperty(value = "考勤日期")
    private String dateTime;

    /**
     * 用户Id
     */
    @ApiModelProperty(value = "打卡用户Id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long uid;

    /**
     * 打卡时间
     */
    @ApiModelProperty(value = "打卡时间")
    private Date clockTime;

    /**
     * 打卡地址
     */
    @ApiModelProperty(value = "打卡地址")
    private String address;

    /**
     * 打卡种类
     */
    @ApiModelProperty(value = "打卡种类")
    private Long clockType;

    /**
     * 打卡状态id
     */
    @ApiModelProperty(value = "打卡状态id")
    private Long stateId;

    /**
     * 删除标志  逻辑删除（0 删除,1 未删除、）
     */
    @ApiModelProperty(value = "删除标志")
    private Long deleteMark;

}
